/// <reference path="../../typings/index.d.ts" />
'use strict';
// Example model


const mongoose = require('mongoose'),
    Schema = mongoose.Schema;

const TaskSchema = new Schema({
    task: { type: String, trim: true },
    Person: { type: String, trim: true },
    createTime: { type: Date, default: Date.now() },
    UpdateyTime: { type: Date, default: Date.now() },
    complete: { type: Boolean, default: false }
});
mongoose.model('Task', TaskSchema);